package com.canxi.games.domain.bo;

import com.canxi.common.core.domain.BaseEntity;
import com.canxi.common.core.validate.AddGroup;
import com.canxi.common.core.validate.EditGroup;
import com.canxi.system.domain.vo.SysOssVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.util.ArrayList;


/**
 * 游戏列表业务对象 cx_games
 *
 * @author ruoyi
 * @date 2024-08-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CxGamesBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 租户Id
     */
//    @NotBlank(message = "租户Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tenantId;

    /**
     * 游戏名称
     */
    @NotBlank(message = "游戏名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 别名
     */
//    @NotBlank(message = "别名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nameAlias;

    /**
     * 游戏描述
     */
//    @NotBlank(message = "游戏描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gameDesc;

    /**
     * 图片
     */
//    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgs;

    /**
     * 视频
     */
//    @NotBlank(message = "视频不能为空", groups = { AddGroup.class, EditGroup.class })
    private String video;

    private ArrayList<SysOssVo> imageArray;

}
